package com.mtsmda.chapter1.abstractE;

public abstract class Car {

	private String model;
	private Integer year;
	private Integer maxSpeed;

	public Car() {

	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Integer getMaxSpeed() {
		return maxSpeed;
	}

	public void setMaxSpeed(Integer maxSpeed) {
		this.maxSpeed = maxSpeed;
	}

	public abstract void description();

	@Override
	public String toString() {
		description();
		return "Car [model=" + model + ", year=" + year + ", maxSpeed="
				+ maxSpeed + "]";
	}

}